/*
 *Copyright (c) 1997, 2011, Company Name. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 */
package com.vlaearn.spring.read.property.file;

import java.util.logging.Logger;

/**
 * This class read data from property file with Constructor Injection.
 * 
 * @author IB1378
 * @since 12-12-2013
 * 
 * @see http 
 *      ://www.tutorialspoint.com/spring/constructor_based_dependency_injection
 *      .htm
 */
public class ReadDataFromPropFileConstructorInjection {
	/**/
	static Logger LOG = Logger
			.getLogger(ReadDataFromPropFileConstructorInjection.class.getName());

	// My Name
	private String myName;
	// My Password
	private String password;

	/**
	 * default contructor
	 */
	public ReadDataFromPropFileConstructorInjection() {
	}

	/**
	 * Constructor with myName, password parameters.
	 * 
	 * @param myName
	 * @param password
	 */
	public ReadDataFromPropFileConstructorInjection(String myName,
			String password) {
		LOG.info("Construction Injection");
		this.myName = myName;
		this.password = password;
	}

	/**
	 * @return myName
	 */
	public String getMyName() {
		return myName;
	}

	/**
	 * @param myName
	 */
	public void setMyName(String myName) {
		this.myName = myName;
	}

	/**
	 * @return password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 */
	public void setPassword(String password) {
		this.password = password;
	}

}
